﻿using System;

namespace SharpSqlAnalyzer.nodes
{
	// Token: 0x0200028F RID: 655
	public class TColumnReferenceList : TParseTreeNodeList
	{
		// Token: 0x06001548 RID: 5448 RVA: 0x00325EC8 File Offset: 0x003240C8
		public virtual void addColumnReference(TColumnReference objectReference)
		{
			base.addElement(objectReference);
		}

		// Token: 0x06001549 RID: 5449 RVA: 0x00325ED1 File Offset: 0x003240D1
		public virtual TColumnReference getColumnReference(int position)
		{
			if (position < base.size())
			{
				return (TColumnReference)this.elementAt(position);
			}
			return null;
		}

		// Token: 0x0600154A RID: 5450 RVA: 0x00325EEA File Offset: 0x003240EA
		internal override void addParseTreeNode(object arg1)
		{
			this.addColumnReference((TColumnReference)arg1);
		}

		// Token: 0x0600154B RID: 5451 RVA: 0x00325EF8 File Offset: 0x003240F8
		public virtual int searchColumnReference(TColumnReference cr)
		{
			int result = -1;
			for (int i = 0; i < base.size(); i++)
			{
				if (string.Compare(this.getColumnReference(i).ToString(), cr.ToString()) == 0)
				{
					result = i;
					break;
				}
			}
			return result;
		}
	}
}
